<template>
  <div id="app">
    <template v-if="route.path.startsWith('/user')">
      <router-view />
    </template>
    <template v-else>
      <BasticLayout />
    </template>
  </div>
</template>
<script setup lang="ts">
import BasticLayout from "@/layout/BasicLayout.vue";
import { onMounted } from "vue";
import { useRoute } from "vue-router";
const route = useRoute();
/**
 * 全局初始化函数
 */
const doInit = () => {
  console.log("初始化App.vue");
};
onMounted(() => {
  doInit();
});
</script>

<style></style>
